﻿using DevExpress.XtraEditors;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WinForm_Mes
{
    public partial class LoadingForm : DevExpress.XtraEditors.XtraForm
    {
        public LoadingForm()
        {
            InitializeComponent();
        }

        private void LoadingForm_Load(object sender, EventArgs e)
        {
            string videoPath = System.IO.Path.Combine(Application.StartupPath, "C:\\Users\\21413\\Desktop\\图片上传\\舞蹈.mp4"); // 
            axWindowsMediaPlayer1.URL = videoPath; // 设置视频路径
            axWindowsMediaPlayer1.settings.autoStart = true; // 自动播放
            axWindowsMediaPlayer1.uiMode = "none"; // 隐藏控制栏（可选）
            axWindowsMediaPlayer1.stretchToFit = true; // 拉伸填充（可选）
            this.Text = "请稍候...";
        }
    }
}